package com.jzo2o.orders.dispatch.strategys;

/**
 * 距离优先策略: 先距离优先，距离相同再判断单数
 */
public class DistanceStrategyImpl extends AbstractStrategyImpl {
    @Override
    protected IProcessRule getRules() {
        //构建责任链, 先距离优先，距离相同再判断接单数
        return new DistanceRule(new AcceptNumRule(null));
    }
}